package com.projectsexception.festivales;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.projectsexception.festivales.provider.model.Show;
import com.projectsexception.festivales.setup.ProjectResources;

public class BandActivity extends Activity {
    
    public static final String SHOW_ID = "showId";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.band);
        String showId = getIntent().getExtras().getString(SHOW_ID);
        ProjectResources res = ProjectResources.getInstance();
        Show show = res.getShow(showId);
        if (show != null) {
            TextView t = (TextView) findViewById(R.id.band_name);
            t.setText(show.getBand().getName());
            t = (TextView) findViewById(R.id.band_biography);
            t.setText(show.getBand().getBiography());
        }
    }

}
